<?php
/*
*----------------------------------------------
* CONFIG
*----------------------------------------------
*/
//定义project中变量，防止引入报错
define('DOMAIN_ROOT','');
define('APP_NAME','');
define('CACHE_SERVER','');
//APP目录
define('APP_ROOT',dirname(dirname(dirname(__FILE__))));
$config =  require_once (APP_ROOT.'/Conf/project.php');
//定义日志目录
define('RUNTIME',APP_ROOT.'/Runtime/Logs/dunmama');
//定义上锁文件
define('LOCK_FILE',RUNTIME.'/run.lock');
//REDIS配置
define('REDIS_SERVER',$config['REDIS_SERVER']['HOST']);
define('REDIS_PORT',$config['REDIS_SERVER']['PORT']);
/*
*----------------------------------------------
* LOAD
*----------------------------------------------
*/
if(!is_dir(RUNTIME)) @mkdir(RUNTIME);
require_once (APP_ROOT.'/Lib/ORG/Util/Daemon.class.php');
require_once (APP_ROOT.'/Lib/ORG/Util/Logger.class.php');
/*
*----------------------------------------------
* INIT
*----------------------------------------------
*/
ob_start();
date_default_timezone_set('PRC');
?>
